<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\MemberPrize
 *
 * @property int $id
 * @property int|null $order_id 订单id
 * @property int|null $member_id 用户id
 * @property int|null $is_exchange 是否兑换（0,兑换  1.未兑换）
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property int|null $prize_id 中奖id
 * @property string|null $prize_name 中奖名称
 * @property int|null $worker_id 工作人员id
 * @property string|null $image
 * @property string|null $qrcode
 * @property-read \App\Member|null $member
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize whereImage($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize whereIsExchange($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize whereMemberId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize whereOrderId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize wherePrizeId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize wherePrizeName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize whereQrcode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\MemberPrize whereWorkerId($value)
 * @mixin \Eloquent
 */
class MemberPrize extends Model
{
    //
    protected  $table='member_prizes';

    public function member(){
        return $this->belongsTo('App\Member','member_id');
    }

}
